<template>
  <div>
    <van-nav-bar title="行走" left-arrow>
      <template #right>
        <van-icon name="service-o" size="20" color="black" style="margin-right: 15px;" />
        <van-icon name="setting-o" size="20" color="black" />
      </template>
    </van-nav-bar>
    <van-panel title="累计行走距离 >" desc="0.00公里" status="GPS未开启">
      <div>
        <van-swipe class="my-swipe" :autoplay="3000">
      <van-swipe-item>
        <div class="foot">
            <h5>换个行走方式</h5>
            <div class="text">
                <div class="pic">
                    <img src="https://img0.baidu.com/it/u=4193579323,2604103692&fm=253&app=138&size=w931&n=0&f=PNG&fmt=auto?sec=1688230800&t=bedbbc74afb4daac02c76b40a3bd8b76" alt="">
                </div>
                <div class="shangxia">
                    <h3>急速燃脂走</h3>
                    <p>464.4万 人练过 · 30分钟</p>
                </div>
                <div class="canjia">
                    <button>走走走</button>
                </div>
            </div>
        </div>
      </van-swipe-item>
      <van-swipe-item>
        <div class="foot">
            <h5>有趣的活动等你来玩</h5>
            <div class="text">
                <div class="pic">
                  <img src="https://img2.baidu.com/it/u=326289139,3192998808&fm=253&fmt=auto&app=138&f=JPEG?w=310&h=310" alt="">
                </div>
                <div class="shangxia">
                    <h3>许愿生日</h3>
                    <p>39996 人练过 · 30分钟</p>
                </div>
                <div class="canjia">
                    <button>去参加</button>
                </div>
            </div>
        </div>
      </van-swipe-item>
    </van-swipe>
      </div>
    </van-panel>
    <div class="content">
      <van-tabs v-model="active" type="line" title-active-background="white"  title-active-color="blue" color="blue">
        <van-tab title="行走">
          <div class="btn">
            <button class="btn1">目标</button>
            <button class="btn2">开始</button>
            <button class="btn3">路线</button>
          </div>
          <div class="footer">
            <span class="left">周好友排名</span>
            <span class="right"><button>查看排行榜</button></span>
          </div>
        </van-tab>
        <van-tab title="健走">
          <div class="btn">
            <button class="btn1">目标</button>
            <button class="btn2">开始</button>
            <button class="btn3">路线</button>
          </div>
          <div class="footer">
            <span class="left">周好友排名</span>
            <span class="right"><button>查看排行榜</button></span>
          </div>
        </van-tab>
        <van-tab title="徒步">
          <div class="btn">
            <button class="btn1">目标</button>
            <button class="btn2">开始</button>
            <button class="btn3">路线</button>
          </div>
          <div class="footer">
            <span class="left">周好友排名</span>
            <span class="right"><button>查看排行榜</button></span>
          </div>
        </van-tab>
        <van-tab title="登山">
          <div class="btn">
            <button class="btn1">目标</button>
            <button class="btn2">开始</button>
            <button class="btn3">路线</button>
          </div>
          <div class="footer">
            <span class="left">周好友排名</span>
            <span class="right"><button>查看排行榜</button></span>
          </div>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
export default {
  methods: {

  },
}
</script>

<style lang="scss" scoped>
*{
  margin: 0;
}
.van-cell{
  font-size: 14px;
  color: #969799;
  padding-bottom: 10px;
}
.van-cell__label{
  font-size: 25px;
  color: black;
  margin-top: 10px;
}
.content{
  margin-top: 20px;
  // background-color: #f0eeee;
  .footer{
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding: 20px 10px 0;
    box-shadow: 0px -10px 10px 1px #eee;
    .left{
      margin-left: 10px;
      font-size: 20px;
      font-weight: bold;
    }
    .right{
      button{
        border-radius: 50px;
        background-color: #fff;
        padding:3px 8px;
        border: 1px solid #c2c2c2;
      }
    }
  }
}
.btn{
  margin-top: 120px;
  display: flex;
  // flex-direction: column;
  justify-content: center;
  .btn1,.btn3{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e4e4e4;
    border: none;
    margin-top: 20px;
  }
  .btn2{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgb(97, 153, 236);
    color: #fff;
    border: none;
    margin: 0 20px;
  }
}
.foot{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100px;
    margin: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    h5{
        margin: 0px 0;
        font-size: 16px;
    }
    .text{
        display: flex;
        justify-content: space-between;
        align-items: center;
        .canjia{
            button{
                margin-top: 14px;
                color: rgb(97, 153, 236);
                width: 70px;
                height: 26px;
                border-radius: 13px;
                border: 1px solid aliceblue;
                line-height: 26px;
            }
        }
        .shangxia{
          // height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            margin-left: -50px;
            p{
              margin-top: 10px;
              font-size: 10px;
            }
        }
        img{
            width: 60px;
            height: 60px;
            border-radius: 4px;
            margin: 10px;
        }
    }
}
</style>